﻿package mortal.game.net.command.group
{
    import Framework.MQ.*;
    import Message.BroadCast.*;
    import Message.Public.*;
    import mortal.game.cache.*;
    import mortal.game.mvc.*;
    import mortal.game.net.broadCast.*;
    import mortal.mvc.core.*;

    public class GroupMemberPosUpdate extends BroadCastCall
    {

        public function GroupMemberPosUpdate(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function call(param1:MessageBlock) : void
        {
            var _loc_4:SMapEntityPoint = null;
            var _loc_5:SGroupPlayer = null;
            var _loc_2:* = param1.messageBase as SMapAllEntityPoint;
            var _loc_3:* = _loc_2.entityPoints;
            for each (_loc_4 in _loc_3)
            {
                
                _loc_5 = Cache.instance.group.getSGroupPlayerBySEntityId(_loc_4.entityId);
                if (_loc_5)
                {
                    _loc_5.point.x = _loc_4.point.x;
                    _loc_5.point.y = _loc_4.point.y;
                    NetDispatcher.dispatchCmd(ServerCommand.GroupPlayerPosMove, null);
                }
            }
            return;
        }// end function

    }
}
